import request from "@/utils/request.js"

/**
 * 根据课程id获取课程课时列表
 * @param {Object} id 课程Id
 */
export function getClassTimeList(id) {
  return request({
    url: '/student-course/student/list/' + id,
    method: 'get'
  })
}

// 学生预约购买课程的课时
export function reserveTime(id) {
  return request({
    url: '/student-course/reserve/' + id,
    method: 'get'
  })
}

// 学生取消预约购买课程的课时
export function unReservedTime(id) {
  return request({
    url: '/student-course/unreserved/' + id,
    method: 'get'
  })
}